package com.sxkf.template.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxkf.template.entity.Post;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 用户帖子 服务类
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-20 11:48:57
 */
public interface PostService extends IService<Post> {

    IPage<Post> pagePost(Integer pageNo, Integer pageSize, String userId, String type, String postType, String topicId, String postTitle, Double longitude, Double latitude);

    IPage<Post> self(Integer pageNo,Integer pageSize,String userId);

    void add(Post post);

    IPage<Post> interactionPage(Integer pageNo, Integer pageSize, String userId, String postTitle, String type, String address, String topicId, Double longitude, Double latitude);

    IPage<Post> pageSelfInterPost(Integer pageNo, Integer pageSize, String userId);
}
